package com.runen.infinitemovement.adapter;

import android.content.Context;
import android.widget.ImageView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.runen.infinitemovement.R;
import com.runen.infinitemovement.tool.GlideUtils;

/**
 * Create by LiaoDuanHong
 * Create on
 */
public class MyHomeMedalAdapter extends BaseQuickAdapter<String, BaseViewHolder> {
    private Context context;

    public MyHomeMedalAdapter(Context context) {
        super(R.layout.item_myhome_medal);
        this.context = context;
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, String s) {
        ImageView iv_medal = baseViewHolder.findView(R.id.iv_medal);
        GlideUtils.loadImage(context, s, iv_medal);
    }
}
